#include"log.hpp"
#include"process.hpp"  
using namespace std;

int main()
{
    int fd=0;
    Pipe::open_pipec(fd);
    int shmid=GetMemory();
    char* shmaddr=(char*)shmat(shmid, nullptr, 0);
    while(1)
    {
        cout<<"this is client: ";
        fgets(shmaddr, SIZE, stdin);
        write(fd,"!",1);
    }
    shmdt(shmaddr);
    return 0;
}